from django.db import models


# Create your models here.
class AccessoriesManager(models.Manager):
    pass


class Accessories(models.Model):
    name = models.CharField(max_length=10,verbose_name="配件名")
    brand = models.CharField(max_length=20,verbose_name="配件品牌")
    supplier = models.CharField(max_length=20,verbose_name="供货商")
    supplier_address = models.CharField(max_length=100,verbose_name="供货商地址")
    purchasing_price = models.FloatField(max_length=20,verbose_name="进价")
    selling_price = models.FloatField(max_length=20,verbose_name="售价")
    number = models.IntegerField
    total_price = models.FloatField(max_length=20,verbose_name="总价")
    settle_accounts = models.BooleanField
    remark = models.CharField(max_length=100,verbose_name="备注")
    accessories = AccessoriesManager()

    class Meta:
        db_table = "accessories"
